<?php
/**
* @package RAMLatestCandidates
* @version 1.5.1 Stable, May 2009
*/

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

// Check for any error message from our helper
if ($msg!='') { echo "<p>$msg</p>\n"; }

// display the n latest candidates retrieved by our helper
?>
	<ul>
<?php
for ($n=0;$n<count($cands);$n++) {
	echo "<li><a href='" . JRoute::_( "index.php?option=com_recruitmentmanager&task=canddisplay&cid=" . $cands[$n]['id'] . "&uid=" . $myuid . "&Itemid=" . $Itemid ) . "'>" . $cands[$n]['firstname'] . ' ' . $cands[$n]['surname'] . ' (' . mod_RAM_LatestCandidatesHelper::getArea($cands[$n]['area']) . ')' .  "</a><br />\n" . JText::_('RAM_LJM_SECTOR') . ': ' . mod_RAM_LatestCandidatesHelper::getSector($cands[$n]['sector']) . "</li>\n";
} // eof for loop
?>
	</ul>
